<?php

/**
 * Description of BaseModule
 *
 * @author David Dusek
 */
class ImageModule extends CMS\AbstractModule {
    /**
     * Ukazka implemntace hooku pro pridani polozky do administracniho menu
     * @return type 
     */
    public function hookAdminMenu() {
        return array("title" => "adminMenuTitle",
                     "link" => ":Image:Image:default",
                     "img" => "btn_image.png");
    }
    
    /**
     * Ukazka implementace hooku pro pridani dvou polozek do submenu.
     * @return array 
     */
    public function hookAdminSubmenu() {
        $submenu = array(
            0 => array(
                "title" => "list",
                "link" => ":Image:Image:default",
                "icon" => "ui-icon-clipboard",
                "right" => "list",
            )
        );
        return $submenu;
    }
           
    /**
     * Ukazka implementace hooku pro pridani opravneni.
     * @return array 
     */
    public function hookUserGetAcl() {
        $acl = array(
            "Image" => array(
                "name" => "image_aclTitle",
                "operations" => array(
                    "list"  => "page_aclList"
                )
            )
        );
        
        return $acl;
    }
}
